<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <script  src="../../common/vue3/vue.js"></script>
</head>

<body>
    <div id="app">
        <p>{{message}}</p>
        <button @click="add">点我</button>
        <p>{{count}}</p>
    </div>

    <script setup>
         const {createApp,ref} = Vue
      //  import {createApp,ref} from 'vue'
        createApp({
            setup(){
                const message = ref('hello vue!')
                const count = ref(0)
                function add(){
                    count.value++;
                }
                return {
                    message,
                    count,
                }
              
            },
            methods: {
               
            },
        }).mount('#app')
        
    </script>
</body>

</html>